package org.jeecg.modules.biz.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.biz.entity.EventSettle;
import org.jeecg.modules.biz.service.EventSettleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Set;

/*
 下级 前端控制器
 */

@RestController
@Api(tags = "下级详情")
@RequestMapping("/team")
public class TeamController {
    @Autowired
    private EventSettleService settleService;

    @ApiOperation("列表")
    @RequestMapping(value = "/list/{address}", method = RequestMethod.GET)
    public Result<List<String>> miningList(@PathVariable String address){
        Result<List<String>> result = new Result<>();

        List<String> list = settleService.findCallerListByInviter(address);
        result.setResult(list);

        return result;
    }
}
